package hierarchy

import (
	"gitee.com/g-qs/gin-vue-admin/server/api/v1"
	"github.com/gin-gonic/gin"
)

type FdArticleRouter struct {
}

// InitFdArticleRouter 初始化 FdArticle 路由信息
func (s *FdArticleRouter) InitFdArticleRouter(Router *gin.RouterGroup, pubRouter *gin.RouterGroup) {
	fdArticleRouterPub := pubRouter.Group("fdArticle")
	fdArticleRouter := Router.Group("fdArticle")
	var fdArticleApi = v1.ApiGroupApp.HierarchyApiGroup.FdArticleApi
	{
		fdArticleRouterPub.GET("getArticle", fdArticleApi.GetArticle)       // 获取文章列表
		fdArticleRouterPub.GET("getHotArticle", fdArticleApi.GetHotArticle) // 获取热门文章列表
	}
	{
		fdArticleRouter.GET("getMyCollect", fdArticleApi.GetMyCollect)     // 获取用户信息
		fdArticleRouter.PUT("forwardArticle", fdArticleApi.ForwardArticle) // 转发文章
	}
}
